{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/mikealbertus/Dropbox/Research/Land Reform under Chavez in Venezuela/Paper/Research Note/PSRM/PSRM R&R/PSRM Replication Data/AppendixTable4M3M6.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}25 Apr 2017, 07:24:34

{com}. do "/var/folders/9h/9spk9xv57b375rlkcp7h9f5m0000gp/T//SD18032.000000"
{txt}
{com}. *** APPENDIX TABLE 4 MODELS 3 AND 6 ***
. 
. * Note that Model 1 and Model 4 of Appendix Table 4 correspond to Model 4 and Model 6 of Table 1 in the paper
. 
. encode mun, gen(muni)
{txt}
{com}. 
. * Mixed models: Model 3 and Model 6
. xi: xtmelogit benefdummy patriotflag patchavezstate08 chavezgov2008 opositor oppchavezstate08 misionfull lruralpop nbi abschavezmargin abschavezmargin_chavezstate08 chavezgov2008mais || muni: || centro:, laplace
{txt}note: chavezgov2008mais omitted because of collinearity
{res}
{txt}Refining starting values: 
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-22054.803}  
{res}{txt}Iteration 1:{space 3}log likelihood = {res:-21994.156}  
{res}{txt}Iteration 2:{space 3}log likelihood = {res:-21994.156}  (backed up)
{res}
{txt}Performing gradient-based optimization: 
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-21994.156}  
{res}{txt}Iteration 1:{space 3}log likelihood = {res:-21966.096}  
{res}{txt}Iteration 2:{space 3}log likelihood = {res:-21940.571}  
{res}{txt}Iteration 3:{space 3}log likelihood = {res:-21940.196}  
{res}{txt}Iteration 4:{space 3}log likelihood = {res:-21940.196}  
{res}
{txt}Mixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}   122,267

{txt}{hline 16}{c TT}{hline 59}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group{col 65}Integration
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum{col 68}Points
{hline 16}{c +}{hline 59}
{res}{col 12}muni{txt}{col 17}{c |}{res}{col 21}     268{col 31}        2{col 42}    456.2{col 53}    4,590{col 71}  1
{col 10}centro{txt}{col 17}{c |}{res}{col 21}   7,783{col 31}        1{col 42}     15.7{col 53}      457{col 71}  1
{txt}{hline 16}{c BT}{hline 59}

{col 49}Wald chi2({res}10{txt}){col 67}={col 70}{res}    74.50
{txt}Log likelihood = {res}-21940.196{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                   benefdummy{col 31}{c |}      Coef.{col 43}   Std. Err.{col 55}      z{col 63}   P>|z|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 18}patriotflag {c |}{col 31}{res}{space 2}-.2894251{col 43}{space 2} .0881314{col 54}{space 1}   -3.28{col 63}{space 3}0.001{col 71}{space 4}-.4621594{col 84}{space 3}-.1166908
{txt}{space 13}patchavezstate08 {c |}{col 31}{res}{space 2} .3425899{col 43}{space 2} .1035019{col 54}{space 1}    3.31{col 63}{space 3}0.001{col 71}{space 4} .1397299{col 84}{space 3}   .54545
{txt}{space 16}chavezgov2008 {c |}{col 31}{res}{space 2}-1.735846{col 43}{space 2} .4119537{col 54}{space 1}   -4.21{col 63}{space 3}0.000{col 71}{space 4}-2.543261{col 84}{space 3}-.9284316
{txt}{space 21}opositor {c |}{col 31}{res}{space 2}-.1216043{col 43}{space 2} .0695817{col 54}{space 1}   -1.75{col 63}{space 3}0.081{col 71}{space 4}-.2579818{col 84}{space 3} .0147733
{txt}{space 13}oppchavezstate08 {c |}{col 31}{res}{space 2}  .113278{col 43}{space 2} .0813388{col 54}{space 1}    1.39{col 63}{space 3}0.164{col 71}{space 4} -.046143{col 84}{space 3} .2726991
{txt}{space 19}misionfull {c |}{col 31}{res}{space 2} .0451149{col 43}{space 2} .0410548{col 54}{space 1}    1.10{col 63}{space 3}0.272{col 71}{space 4}-.0353511{col 84}{space 3} .1255809
{txt}{space 20}lruralpop {c |}{col 31}{res}{space 2}-.0412964{col 43}{space 2} .0228602{col 54}{space 1}   -1.81{col 63}{space 3}0.071{col 71}{space 4}-.0861016{col 84}{space 3} .0035087
{txt}{space 26}nbi {c |}{col 31}{res}{space 2} .0195355{col 43}{space 2}  .005222{col 54}{space 1}    3.74{col 63}{space 3}0.000{col 71}{space 4} .0093006{col 84}{space 3} .0297704
{txt}{space 14}abschavezmargin {c |}{col 31}{res}{space 2}-.8102919{col 43}{space 2} .6644759{col 54}{space 1}   -1.22{col 63}{space 3}0.223{col 71}{space 4}-2.112641{col 84}{space 3} .4920568
{txt}abschavezmargin_chavezstate08 {c |}{col 31}{res}{space 2} 2.045804{col 43}{space 2} .7674136{col 54}{space 1}    2.67{col 63}{space 3}0.008{col 71}{space 4} .5417009{col 84}{space 3} 3.549907
{txt}{space 12}chavezgov2008mais {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 24}_cons {c |}{col 31}{res}{space 2} -3.23628{col 43}{space 2} .3386793{col 54}{space 1}   -9.56{col 63}{space 3}0.000{col 71}{space 4}-3.900079{col 84}{space 3}-2.572481
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}muni{txt}: Identity{col 30}{c |}
{col 20}sd(_cons){col 30}{c |}{res}{col 33} 1.145097{col 44} .0708914{col 58} 1.014251{col 70} 1.292822
{txt}{hline 29}{c +}{hline 48}
{res}centro{txt}: Identity{col 30}{c |}
{col 20}sd(_cons){col 30}{c |}{res}{col 33} .8824527{col 44} .0261955{col 58} .8325755{col 70}  .935318
{txt}{hline 29}{c BT}{hline 48}
LR test vs. logistic model:{col 29}chi2({res}2{txt}) = {res}4558.48{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: Log-likelihood calculations are 
based on the 
{help j_melaplace##|_new:Laplacian approximation}.
{p_end}

{com}. est store ml1
{txt}
{com}. xi: xtmelogit benefdummy patriotflag patchavezstate08 chavezgov2008 opositor oppchavezstate08 misionfull timeapp i.tipo_doc lruralpop nbi abschavezmargin abschavezmargin_chavezstate08 chavezgov2008mais || muni: || centro:, laplace
{txt}i.tipo_doc{col 19}_Itipo_doc_1-4{col 39}(_Itipo_doc_1 for tip~c==CON ADJUDICACION DE TIERRAS omitted)
note: chavezgov2008mais omitted because of collinearity
{res}
{txt}Refining starting values: 
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-14236.923}  
{res}{txt}Iteration 1:{space 3}log likelihood = {res:-14188.037}  
{res}{txt}Iteration 2:{space 3}log likelihood = {res:-14191.483}  
{res}
{txt}Performing gradient-based optimization: 
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-14191.483}  
{res}{txt}Iteration 1:{space 3}log likelihood = {res:-14148.514}  
{res}{txt}Iteration 2:{space 3}log likelihood = {res:-14143.532}  
{res}{txt}Iteration 3:{space 3}log likelihood = {res:-14143.457}  
{res}{txt}Iteration 4:{space 3}log likelihood = {res:-14143.457}  
{res}
{txt}Mixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}   122,267

{txt}{hline 16}{c TT}{hline 59}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group{col 65}Integration
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum{col 68}Points
{hline 16}{c +}{hline 59}
{res}{col 12}muni{txt}{col 17}{c |}{res}{col 21}     268{col 31}        2{col 42}    456.2{col 53}    4,590{col 71}  1
{col 10}centro{txt}{col 17}{c |}{res}{col 21}   7,783{col 31}        1{col 42}     15.7{col 53}      457{col 71}  1
{txt}{hline 16}{c BT}{hline 59}

{col 49}Wald chi2({res}14{txt}){col 67}={col 70}{res}  7450.74
{txt}Log likelihood = {res}-14143.457{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                   benefdummy{col 31}{c |}      Coef.{col 43}   Std. Err.{col 55}      z{col 63}   P>|z|{col 71}     [95% Con{col 84}f. Interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 18}patriotflag {c |}{col 31}{res}{space 2}-.2382691{col 43}{space 2} .1141057{col 54}{space 1}   -2.09{col 63}{space 3}0.037{col 71}{space 4}-.4619122{col 84}{space 3}-.0146259
{txt}{space 13}patchavezstate08 {c |}{col 31}{res}{space 2} .1942705{col 43}{space 2} .1302844{col 54}{space 1}    1.49{col 63}{space 3}0.136{col 71}{space 4}-.0610823{col 84}{space 3} .4496233
{txt}{space 16}chavezgov2008 {c |}{col 31}{res}{space 2}-2.227529{col 43}{space 2} .4348576{col 54}{space 1}   -5.12{col 63}{space 3}0.000{col 71}{space 4}-3.079834{col 84}{space 3}-1.375224
{txt}{space 21}opositor {c |}{col 31}{res}{space 2}-.1822753{col 43}{space 2}  .092809{col 54}{space 1}   -1.96{col 63}{space 3}0.050{col 71}{space 4}-.3641777{col 84}{space 3} -.000373
{txt}{space 13}oppchavezstate08 {c |}{col 31}{res}{space 2} .1118655{col 43}{space 2} .1055275{col 54}{space 1}    1.06{col 63}{space 3}0.289{col 71}{space 4}-.0949646{col 84}{space 3} .3186957
{txt}{space 19}misionfull {c |}{col 31}{res}{space 2} .0606696{col 43}{space 2} .0499181{col 54}{space 1}    1.22{col 63}{space 3}0.224{col 71}{space 4} -.037168{col 84}{space 3} .1585072
{txt}{space 22}timeapp {c |}{col 31}{res}{space 2}  .486781{col 43}{space 2} .0056873{col 54}{space 1}   85.59{col 63}{space 3}0.000{col 71}{space 4} .4756342{col 84}{space 3} .4979279
{txt}{space 17}_Itipo_doc_2 {c |}{col 31}{res}{space 2} .3191775{col 43}{space 2} .0788395{col 54}{space 1}    4.05{col 63}{space 3}0.000{col 71}{space 4} .1646548{col 84}{space 3} .4737001
{txt}{space 17}_Itipo_doc_3 {c |}{col 31}{res}{space 2} .4464099{col 43}{space 2} .0812347{col 54}{space 1}    5.50{col 63}{space 3}0.000{col 71}{space 4} .2871928{col 84}{space 3} .6056269
{txt}{space 17}_Itipo_doc_4 {c |}{col 31}{res}{space 2}-1.645916{col 43}{space 2} .0963436{col 54}{space 1}  -17.08{col 63}{space 3}0.000{col 71}{space 4}-1.834746{col 84}{space 3}-1.457086
{txt}{space 20}lruralpop {c |}{col 31}{res}{space 2}-.0346563{col 43}{space 2} .0241061{col 54}{space 1}   -1.44{col 63}{space 3}0.151{col 71}{space 4}-.0819034{col 84}{space 3} .0125907
{txt}{space 26}nbi {c |}{col 31}{res}{space 2} .0326857{col 43}{space 2} .0055113{col 54}{space 1}    5.93{col 63}{space 3}0.000{col 71}{space 4} .0218838{col 84}{space 3} .0434876
{txt}{space 14}abschavezmargin {c |}{col 31}{res}{space 2}-1.219622{col 43}{space 2} .7163382{col 54}{space 1}   -1.70{col 63}{space 3}0.089{col 71}{space 4}-2.623619{col 84}{space 3} .1843749
{txt}abschavezmargin_chavezstate08 {c |}{col 31}{res}{space 2}  2.58721{col 43}{space 2} .8189877{col 54}{space 1}    3.16{col 63}{space 3}0.002{col 71}{space 4} .9820236{col 84}{space 3} 4.192396
{txt}{space 12}chavezgov2008mais {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 24}_cons {c |}{col 31}{res}{space 2}-10.49628{col 43}{space 2} .3792196{col 54}{space 1}  -27.68{col 63}{space 3}0.000{col 71}{space 4}-11.23954{col 84}{space 3}-9.753022
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}muni{txt}: Identity{col 30}{c |}
{col 20}sd(_cons){col 30}{c |}{res}{col 33}    1.103{col 44} .0700067{col 58} .9739805{col 70}  1.24911
{txt}{hline 29}{c +}{hline 48}
{res}centro{txt}: Identity{col 30}{c |}
{col 20}sd(_cons){col 30}{c |}{res}{col 33} .7617948{col 44} .0294577{col 58} .7061925{col 70}  .821775
{txt}{hline 29}{c BT}{hline 48}
LR test vs. logistic model:{col 29}chi2({res}2{txt}) = {res}2513.34{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: Log-likelihood calculations are 
based on the 
{help j_melaplace##|_new:Laplacian approximation}.
{p_end}

{com}. est store ml2
{txt}
{com}. 
. estout ml*, style(tex) starlevels(* .10 ** .05 *** .01) cells(b(star fmt(3)) se(par fmt(3))) mlabels("1: RE" "2: RE" "3: RE" "4: RE, Lag DV" "5: RE, Lag DV" "6: RE, Lag DV") keep(patriotflag patchavezstate08 chavezgov2008 opositor oppchavezstate08 misionfull timeapp lruralpop nbi _Itipo_doc_2 _Itipo_doc_3 _Itipo_doc_4 abschavezmargin abschavezmargin_chavezstate08) order(patchavezstate08 patriotflag oppchavezstate08 opositor misionfull timeapp _Itipo_doc_2 _Itipo_doc_3 _Itipo_doc_4 abschavezmargin_chavezstate08 abschavezmargin chavezgov2008 lruralpop nbi) varlabels(opositor "Opposition in Opposition State" patriotflag "Loyalist in Opposition State" patchavezstate08 "Loyalist in Chavez State" oppchavezstate08 "Opposition in Chavez State" misionfullmunmais "Misiones" misionfull "Misiones" _Itipo_doc_2 "Carta Agraria" _Itipo_doc_3 "Permanency Rights" _Itipo_doc_4 "Title Registration" patriotmais "\% Loyalists in Opposition State" opositormais "\% Opposition in Chavez State" lvoters "log(Voters)" chavezvote "\% Chavez Vote" abschavezmargin "Chavez Win Margin in Opposition State" abschavezmargin_chavezstate08 "Chavez Win Margin in Chavez State" chavezgov2008 "Chavez Governor Baseline" patchavezstate08 "\% Loyalists in Chavez State" oppchavezstate08 "\% Opposition in Opposition State" lruralvoters "log(Rural Voters)" lruralvoters_muni "log(Rural Voters)" lruralpop "log(Rural Population)" rural_pc_muni "Percent Rural" nbi "Poverty Rate") stats(N, labels("Observations") fmt(0 0 3))
{res}
            &       1: RE   &       2: RE   \\
            &        b/se   &        b/se   \\
eq1         &               &               \\
Loyalist in Chavez State&       0.194   &       0.343***\\
            &     (0.130)   &     (0.104)   \\
Loyalist in Opposition State&      -0.238** &      -0.289***\\
            &     (0.114)   &     (0.088)   \\
Opposition in Chavez State&       0.112   &       0.113   \\
            &     (0.106)   &     (0.081)   \\
Opposition in Opposition State&      -0.182** &      -0.122*  \\
            &     (0.093)   &     (0.070)   \\
Misiones    &       0.061   &       0.045   \\
            &     (0.050)   &     (0.041)   \\
timeapp     &       0.487***&               \\
            &     (0.006)   &               \\
Carta Agraria&       0.319***&               \\
            &     (0.079)   &               \\
Permanency Rights&       0.446***&               \\
            &     (0.081)   &               \\
Title Registration&      -1.646***&               \\
            &     (0.096)   &               \\
Chavez Win Margin in Chavez State&       2.587***&       2.046***\\
            &     (0.819)   &     (0.767)   \\
Chavez Win Margin in Opposition State&      -1.220*  &      -0.810   \\
            &     (0.716)   &     (0.664)   \\
Chavez Governor Baseline&      -2.228***&      -1.736***\\
            &     (0.435)   &     (0.412)   \\
log(Rural Population)&      -0.035   &      -0.041*  \\
            &     (0.024)   &     (0.023)   \\
Poverty Rate&       0.033***&       0.020***\\
            &     (0.006)   &     (0.005)   \\
Observations&      122267   &      122267   \\
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/mikealbertus/Dropbox/Research/Land Reform under Chavez in Venezuela/Paper/Research Note/PSRM/PSRM R&R/PSRM Replication Data/AppendixTable4M3M6.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}25 Apr 2017, 08:44:00
{txt}{.-}
{smcl}
{txt}{sf}{ul off}